<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Member\Controller;
use Think\Controller;
class DialogController extends IndexController {
	
    public function indexAction(){
		
		$model=new \Member\Model\MemberDialogModel();
		
		foreach($model->ListData() as $key=>$value){
			$this->assign($key,$value);
		}

		$this->display();	
    }
	
	public function showAction(){
		$model=new \Member\Model\MemberDialogModel();
		$list=$model->ShowData();
		foreach($list as $key=>$value){
			$this->assign($key,$value);
		}
		
		$model->UpdateDialogRead($list);

		$this->assign('manage',$model->GetOneData());
		
		$this->display();	
	}
	
}